package com.huaifang.yan.controller;

import com.huaifang.yan.model.MessageBody;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("message")
public class MessageController {

    @RequestMapping(path = "send", method = RequestMethod.GET)
    public String sendMessage(MessageBody message) {

        return "success";
    }
}
